<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var arr4 = ["a", "b", "c", "d", "e", "f"];

        //从第index为1的位置开始删除元素,一共删除三个元素。并且在 index=1 的前面追加两个元素
        var result4 = arr4.splice(1, 3, "千古壹号", "vae");

        console.log("arr4：" + JSON.stringify(arr4));
        console.log("result4：" + JSON.stringify(result4));
    </script>
</body>

</html>